package org.fast.framework;

import org.fast.framework.container.BeanContainer;
import org.fast.framework.container.ClassContainer;
import org.fast.framework.helper.AopHelper;
import org.fast.framework.helper.ControllerHelper;
import org.fast.framework.helper.IocHelper;
import org.fast.framework.util.ClassUtil;

/**
 * <p>初始化框架
 * 类容器、Bean容器、AOP、IOC、MVC...</p>
 *
 */
public final class BootStrap {

    public static void init() {
        Class<?>[] classList = {
            ClassContainer.class,
            BeanContainer.class,
            AopHelper.class,
            IocHelper.class,
            ControllerHelper.class
        };
        for (Class<?> clazz : classList) {
            ClassUtil.loadClass(clazz.getName());
        }
    }
}